package com.jeesite.modules.jdProduct.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.util.Date;


/**
 * @ClassName AfterSale
 * @description
 * @Author ouyang
 * @Date 2019/4/30 13:43
 **/
@Table(name = "zt_after_sale", alias = "a", columns = {
        @Column(name = "id", attrName = "id", label = "编号", isPK = true),
        @Column(name = "order", attrName = "order", label = "订单号", queryType = QueryType.LIKE),
        @Column(name = "sku_id", attrName = "skuId", label = "商品编号", queryType = QueryType.LIKE),
        @Column(name = "afs_service_id", attrName = "afsServiceId", label = "服务单号", queryType = QueryType.LIKE),
        @Column(name = "admin_id", attrName = "adminId", label = "用户id"),
        @Column(name = "type", attrName = "type", label = "维修类型"),
        @Column(name = "take_type", attrName = "takeType", label = "返回方式"),
        @Column(name = "afsApply_time", attrName = "afsApplyTime", label = "申请时间"),
        @Column(name = "ware_Name", attrName = "wareName", label = "商品名称"),
        @Column(name = "img", attrName = "img", label = "商品背景图"),
        @Column(name = "num", attrName = "num", label = "商品数量"),
        @Column(name = "afs_service_step", attrName = "afsServiceStep", label = "服务单环节"),
        @Column(name = "afs_service_step_name", attrName = "afsServiceStepName", label = "服务单环节名称"),
        @Column(name = "cancel", attrName = "cancel", label = "是否可取消"),
        @Column(name = "reason", attrName = "reason", label = "申请原因"),
        @Column(name = "return_addr", attrName = "returnAddr", label = "返件地址"),
        @Column(name = "take_addr", attrName = "takeAddr", label = "取件地址"),
        @Column(name = "freight_money", attrName = "freightMoney", label = "快递运费"),
        @Column(name = "express_company", attrName = "expressCompany", label = "快递公司"),
        @Column(name = "deliver_date", attrName = "deliverDate", label = "发货日期"),
        @Column(name = "express_code", attrName = "expressCode", label = "快递单号"),
        @Column(name = "create_date", attrName = "createDate", label = "创建时间"),
        @Column(name = "spotid", attrName = "spotid", label = "自营还是京东"),
        @Column(name = "question_desc", attrName = "questionDesc", label = "描述"),
        @Column(name = "question_pic", attrName = "questionPic", label = "图片"),
},orderBy = "a.create_date DESC")
public class ZtAfterSale extends DataEntity<ZtAfterSale> {

    private String order;
    private String skuId;
    private String adminId;
    private Integer afsServiceId;
    private Integer type;
    private Integer takeType;
    private String afsApplyTime;
    private String wareName;
    private String img;
    private Integer num;
    private Integer afsServiceStep;
    /** 服务单环节名称*/
    private String afsServiceStepName;
    private Boolean cancel;
    private String freightMoney;
    private String expressCompany;
    private String deliverDate;
    private String expressCode;
    private Integer pageNum;
    private String reason;
    private String returnAddr;
    private String takeAddr;
    private Integer spotid;

    @JsonIgnore
    private Date createDate;
    private String questionDesc;
    private String questionPic;

    public Integer getSpotid() {
        return spotid;
    }

    public void setSpotid(Integer spotid) {
        this.spotid = spotid;
    }

    public String getQuestionDesc() {
        return questionDesc;
    }

    public void setQuestionDesc(String questionDesc) {
        this.questionDesc = questionDesc;
    }

    public String getQuestionPic() {
        return questionPic;
    }

    public void setQuestionPic(String questionPic) {
        this.questionPic = questionPic;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getAfsServiceId() {
        return afsServiceId;
    }

    public void setAfsServiceId(Integer afsServiceId) {
        this.afsServiceId = afsServiceId;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAfsApplyTime() {
        return afsApplyTime;
    }

    public void setAfsApplyTime(String afsApplyTime) {
        this.afsApplyTime = afsApplyTime;
    }

    public String getWareName() {
        return wareName;
    }

    public void setWareName(String wareName) {
        this.wareName = wareName;
    }

    public Integer getAfsServiceStep() {
        return afsServiceStep;
    }

    public void setAfsServiceStep(Integer afsServiceStep) {
        this.afsServiceStep = afsServiceStep;
    }

    public Boolean getCancel() {
        return cancel;
    }

    public void setCancel(Boolean cancel) {
        this.cancel = cancel;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateDate() {
        return createDate;
    }


    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getFreightMoney() {
        return freightMoney;
    }

    public void setFreightMoney(String freightMoney) {
        this.freightMoney = freightMoney;
    }

    public String getExpressCompany() {
        return expressCompany;
    }

    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
    }

    public String getDeliverDate() {
        return deliverDate;
    }

    public void setDeliverDate(String deliverDate) {
        this.deliverDate = deliverDate;
    }

    public String getExpressCode() {
        return expressCode;
    }

    public void setExpressCode(String expressCode) {
        this.expressCode = expressCode;
    }

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getAfsServiceStepName() {
        return afsServiceStepName;
    }

    public void setAfsServiceStepName(String afsServiceStepName) {
        this.afsServiceStepName = afsServiceStepName;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReturnAddr() {
        return returnAddr;
    }

    public void setReturnAddr(String returnAddr) {
        this.returnAddr = returnAddr;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getTakeType() {
        return takeType;
    }

    public void setTakeType(Integer takeType) {
        this.takeType = takeType;
    }

    public String getTakeAddr() {
        return takeAddr;
    }

    public void setTakeAddr(String takeAddr) {
        this.takeAddr = takeAddr;
    }
}
